package com.techsoul.common.core.exception;

import com.techsoul.common.core.enums.HttpStatusEnum;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.ResponseStatus;

@ResponseStatus(value = HttpStatus.INTERNAL_SERVER_ERROR)
public class TaskException extends BaseException {

    public TaskException(Throwable cause) {
        super(cause);
    }

    public TaskException(String msg) {
        this(msg, null);
    }

    public TaskException(String msg, Object[] msgArgs) {
        super(HttpStatusEnum.TASK_EXCEPTION, msg, msgArgs);
    }

}
